package org.wendu.wdoa.exam.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import org.wendu.wdoa.common.page.PageParam;
import org.wendu.wdoa.exam.model.leave;

import java.util.List;
@Mapper
public interface ExamDao {
    List<leave> findMgrLeaveList(@Param("userId") String userId, @Param("pageParam") PageParam pageParam);

    @Update("update t_leave set l_spr=#{userName},l_sp_date=#{leave.l_sp_date},l_sp_advice=#{leave.l_sp_advice},l_status=#{leave.l_status} where l_id=#{leave.l_id}")
    void checkLeave(@Param("userName") String userName, @Param("leave") leave leave);


}
